package slxy.jiangtao.dts.entity.business;

import org.hibernate.annotations.DynamicInsert;
import slxy.jiangtao.dts.core.common.bean.BaseId;

import javax.persistence.*;

/**
 * Code must be sexy
 * Created by Jiang Tao on 2017/5/26.
 * 说明：用户-邮件实体
 */
@Entity
@DynamicInsert
@Table(name = "user_email", schema = "dts", catalog = "")
public class UserEmail extends BaseId{
    @Basic
    @Column(name = "sendtor")
    private Integer sendtor;

    @Basic
    @Column(name = "receiver")
    private Integer receiver;

    @Basic
    @Column(name = "state")
    private Integer state;

    @Basic
    @Column(name = "email_id")
    private Integer emailId;

    public Integer getSendtor() {
        return sendtor;
    }

    public void setSendtor(Integer sendtor) {
        this.sendtor = sendtor;
    }
    public Integer getReceiver() {
        return receiver;
    }

    public void setReceiver(Integer receiver) {
        this.receiver = receiver;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public Integer getEmailId() {
        return emailId;
    }

    public void setEmailId(Integer emailId) {
        this.emailId = emailId;
    }
}
